package zju.ccnt.oauth2.user.exception;

import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;
import zju.ccnt.exception.BaseWebApplicationException;

/**
 * Created by zha on 14/11/5.
 */
@ResponseStatus(value = HttpStatus.CONFLICT, reason = "Duplicate user found")
public class DuplicateUserException extends BaseWebApplicationException {
    public DuplicateUserException(String name) {
        super(HttpStatus.CONFLICT, "user " + name + " already exists.");
    }
}